package com.maoyu.cloud.login.entity;

import com.maoyu.cloud.mybatis.entity.PtMenuEntity;

import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;

public class MenuLevelEntity implements Serializable {
    private String menuId;
    private String menuName;
    private String menuUrl;

    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuUrl() {
        return menuUrl;
    }

    public void setMenuUrl(String menuUrl) {
        this.menuUrl = menuUrl;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public List<MenuLevelEntity> getChildrenList() {
        return childrenList;
    }

    public void setChildrenList(List<MenuLevelEntity> childrenList) {
        this.childrenList = childrenList;
    }

    private String menuIcon;
    private List<MenuLevelEntity> childrenList = new LinkedList<>();

    public MenuLevelEntity(PtMenuEntity ptMenuEntity) {
        this.menuId = ptMenuEntity.getMenuId();
        this.menuName = (ptMenuEntity.getMenuName());
        this.menuIcon = ptMenuEntity.getMenuIcon();
        this.menuUrl = ptMenuEntity.getMenuUrl();
    }

    @Override
    public String toString() {
        return "MenuLevelEntity{" +
                "menuId='" + menuId + '\'' +
                ", menuName='" + menuName + '\'' +
                ", menuUrl='" + menuUrl + '\'' +
                ", menuIcon='" + menuIcon + '\'' +
                ", childrenList=" + childrenList +
                '}';
    }
}